using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace ElasticReflection
{



    /// <summary>
    /// Wrapper for MethodInfo class to simplify functionality
    /// </summary>
    public class ElasticMethod : ElasticMember<MethodInfo>
    {
        

        public ElasticMethod(ElasticType Parent, MethodInfo Base)
            : base(Parent,Base)
        {
            
        }

        public object Call(params object[] Parameters)
        {
            return Base.Invoke(Instance, Parameters);
        }
        public Result Call<Result>(params object[] Parameters)
        {
            return (Result)Base.Invoke(Instance, Parameters);
        }

    }
}
